package com.easylinkin.linkappapi.space.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.easylinkin.linkappapi.space.entity.LinkappSpace;

/**
 * <p></p>
 *
 * @author liuming
 * @since 2020/4/14
 */
@Repository
public interface LinkappSpaceMapper extends BaseMapper<LinkappSpace> {

    List<LinkappSpace> selectLinkappSpace(Page<LinkappSpace> page, @Param("linkappSpace") LinkappSpace linkappSpace);

    List<LinkappSpace> selectLinkappSpaceList(LinkappSpace linkappSpace);

    List<LinkappSpace> selectLinkappSpaceListGlobal(LinkappSpace linkappSpace);

    LinkappSpace selectLinkappSpace(@Param("linkappSpace") LinkappSpace linkappSpace);

    List<LinkappSpace> selectLinkappSpaceByUser(@Param("id") String id);

    int batchInsert(@Param("list") List<LinkappSpace> list);
}
